<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'note-form',
    'enableAjaxValidation'=>true,
)); ?>

    <p class="note"><?php echo Yii::t('site','Fields with {marker} are required.',array('{marker}'=>'<span class="required">*</span>')); ?></p>

    <div class="row">
        <?php echo $form->labelEx($note,'content'); ?>
        <?php echo $form->textArea($note,'content',array('rows'=>6, 'cols'=>50)); ?>
        <?php echo $form->error($note,'content'); ?>
    </div>

    <?php if(!isset($dontShowAddNoteButton) or $dontShowAddNoteButton==false) : ?>
    <div class="row buttons">
        <?php echo CHtml::submitButton($note->isNewRecord ? Yii::t('site','Add Note') : Yii::t('site','Update Note')); ?>
    </div>
    <?php endif; ?>

<?php $this->endWidget(); ?>

</div><!-- form -->
